package com.imti.mall.order.service.impl;

import com.imti.mall.model.oms.pojo.OmsOrder;
import com.imti.mall.model.oms.query.OmsOrderListParam;
import com.imti.mall.model.oms.vo.OmsOrderDetail;
import com.imti.mall.order.mapper.OmsOrderMapper;
import com.imti.mall.order.service.OmsOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class OmsOrderServiceImpl extends ServiceImpl<OmsOrderMapper, OmsOrder> implements OmsOrderService {

    @Resource
    private OmsOrderMapper omsOrderMapper;

    @Override
    public List<OmsOrder> fetchOrderList(Map<String,Object> map){

        return omsOrderMapper.fetchOrderList(map);
    }

    @Override
    public Integer closeOrder(Map<String,Object> map) {

        return omsOrderMapper.closeOrder(map);
    }

    @Override
    public Integer deleteOrder(List<Integer> idList) {
        return omsOrderMapper.deleteOrder(idList);
    }

    @Override
    public OmsOrderDetail getOrderDetails(Integer id) {
        return omsOrderMapper.getOrderDetails(id);
    }



}
